import turtle

# turtle.hideturtle()

turtle.setup(800, 800, 0, 0)
turtle.pensize(3)
turtle.color((0.0, 1.0, 0.0), (1.0, 0, 0))
#clockwise

turtle.begin_poly()
# turtle.begin_fill()
turtle.left(90)
turtle.fd(100)
turtle.right(90)
turtle.fd(100)
turtle.right(90)
turtle.fd(100)
turtle.right(90)
turtle.fd(100)
turtle.right(90)
# turtle.end_fill()
turtle.end_poly()

p = turtle.get_poly()

turtle.register_shape("myRect", p)

turtle.penup()

turtle.setx(50)
turtle.sety(50)
# turtle.home()
# turtle.setheading(90)
turtle.pendown()

turtle.shape("myRect")

# turtle.showturtle()

turtle.mainloop()
